/**
 * 用逗号间隔组成字符串
 * @param strs
 * @returns {string}
 */
export function buildStrSplitePot(strs){
    let resultStr = "";
    for (let str of strs) {
        resultStr = resultStr +str + ",";
    }
    resultStr = resultStr.substring(0,resultStr.length-1);
    return resultStr;
}

/**
 * Grid字段字典翻译
 * ----------------------------------------------------------------------------
 * return translateByDict(
 *   columnData,【字段值】
 *   this.$refs["dict"【DictGroup的ref值】].getDictGroup("G0001"【DictDefine的groupCode值】)
 * );
 * ----------------------------------------------------------------------------
 * @param data          列字段值
 * @param dictData      字典数据
 */
export function translateByDict(data,dictData){
    if(undefined===dictData){
        return data;
    }
    return dictData[data];
}